package com.coastline.fruit.usercenter.constants;

import com.sun.mail.imap.protocol.INTERNALDATE;

/**
 * @author Coastline
 * @date 2025/1/1 22:26
 */
public interface UserCenterConstant {
    String USER_NAME = "userName";
    String USER = "User";
    String EMAIL = "email";
    String ROLE = "role";

    /**
     * 产品信息mapping
     */
    String PRODUCT_MAPPING_TEMPLATE = "{\n" +
            "  \"mappings\": {\n" +
            "    \"properties\": {\n" +
            "      \"productId\": {\n" +
            "        \"type\": \"keyword\"\n" +
            "      },\n" +
            "      \"productName\":{\n" +
            "        \"type\": \"text\",\n" +
            "        \"analyzer\": \"ik_max_word\",\n" +
            "        \"copy_to\": \"all\"\n" +
            "      },\n" +
            "      \"origin\":{\n" +
            "        \"type\": \"text\",\n" +
            "        \"analyzer\": \"ik_max_word\",\n" +
            "        \"copy_to\": \"all\"\n" +
            "      },\n" +
            "      \"scientificName\":{\n" +
            "        \"type\": \"text\",\n" +
            "        \"analyzer\": \"ik_max_word\",\n" +
            "        \"copy_to\": \"all\"\n" +
            "      },\n" +
            "      \"nutritionalInfo\":{\n" +
            "        \"type\": \"text\",\n" +
            "        \"analyzer\": \"ik_max_word\",\n" +
            "        \"copy_to\": \"all\"\n" +
            "      },\n" +
            "      \"coldWarm\":{\n" +
            "        \"type\": \"keyword\",\n" +
            "      },\n" +
            "      \"acidBasicity\":{\n" +
            "        \"type\": \"keyword\"\n" +
            "      },\n" +
            "    }\n" +
            "  }\n" +
            "}";

}
